
/**
 * 走菜单，走权限控制
 * @type {[null,null]}
 */
export const asyncRoutes = [
  {
    path: '/',
    component: () => import('@/views/main'),
    name: 'main',
    redirect: { name: 'home' },
    meta: { title: '主入口布局' },
    children: [
      { path: '/home', component: () => import('@/views/modules/home'), name: 'home', meta: { title: '首页' } }
    ]
  },
  {
    path: '*', redirect: '/404', hidden: true
  }
]


/**
 * 基础路由
 * @type { *[] }
 */
export const constantRoutes = [
  { path: '/login', component: () => import('@/views/login/login'), name: 'login', meta: { title: '登录' } },
  { path: '/mobile/login', component: () => import('@/views/login/mobile-login'), name: 'mobile-login', meta: { title: '登录' }, },
  { path: '/mobile/own-list', component: () => import('@/views/modules/mobile/own-list'), name: 'own-list', meta: { title: '问卷清单' } },
  { path: '/mobile/selected-user-list', component: () => import('@/views/modules/mobile/selected-user-list'), name: 'selected-user-list', meta: { title: '选择用户' } },
  { path: '/mobile/start-explain', component: () => import('@/views/modules/mobile/start-explain'), name: 'start-explain', meta: { title: '问卷说明' } },
  { path: '/mobile/assessment-answer', component: () => import('@/views/modules/mobile/assessment-answer'), name: 'assessment-answer', meta: { title: '评估答题' } },
  { path: '/404', component: () => import('@/views/exception/404'), name: '404', meta: { title: '404' } },
]
